package com.maxio.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxio.domain.dto.DeptDTO.DeptAddDTO;
import com.maxio.domain.dto.DeptDTO.DeptEditDTO;
import com.maxio.domain.dto.PageDTO;
import com.maxio.domain.po.Dept;
import com.maxio.domain.query.DeptQuery;
import com.maxio.domain.vo.ClassVO.IdAndName;
import com.maxio.domain.vo.DeptVO;

import java.util.List;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author enhuan
 * @since 2024-05-28
 */
public interface IDeptService extends IService<Dept> {
    Long saveDept(DeptAddDTO addDTO);

    Dept selectById(Long id);

    Boolean updateDeptById(DeptEditDTO editDTO);

    Boolean deleteById(Long id);

    PageDTO<DeptVO> selectPage(DeptQuery userQuery);

    List<IdAndName> selectIdAndName();
}
